|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | BAUD_RATE 9600 |
| #define | TRANSMIT_DATA_COUNT 0x02 |
| #define | USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Functions | |
| void | main (void) |
| void | USCI_A0_ISR (void) |
Variables | |
| uint8_t | receivedData = 0x00 |
| uint8_t | transmitData = 0x00 |
| uint8_t | transmitAddress = USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS |
| uint8_t | transmitDataCount = TRANSMIT_DATA_COUNT |
| #define BAUD_RATE 9600 |
This example shows how to configure the UART module to Transmit data and read response
MSP430F5438A
-----------------
/|\| |
| | |
--|RST |
| |
| P3.4/UCA0TXD|------------>
| | 9600
| P3.5/UCA0RXD|<------------
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 62 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
| #define TRANSMIT_DATA_COUNT 0x02 |
Definition at line 63 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
| #define USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS 0xAA |
Definition at line 64 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
| void main | ( | void | ) |
Definition at line 70 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
References __no_operation(), param, STATUS_FAIL, and transmitAddress.
| void USCI_A0_ISR | ( | void | ) |
Definition at line 127 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
References receivedData, TRANSMIT_DATA_COUNT, transmitAddress, transmitData, and transmitDataCount.
| uint8_t receivedData = 0x00 |
Definition at line 66 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
Referenced by USCI_A0_ISR().
| uint8_t transmitAddress = USCI_A_UART_MULTIPROCESSOR_MODE_ADDRESS |
Definition at line 67 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
Referenced by main(), and USCI_A0_ISR().
| uint8_t transmitData = 0x00 |
Definition at line 66 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
Referenced by USCI_A0_ISR().
| uint8_t transmitDataCount = TRANSMIT_DATA_COUNT |
Definition at line 68 of file usci_a_uart_ex2_addressBitMultiprocessorTX.c.
Referenced by USCI_A0_ISR().